
@import 'css/config.scss';
.file-upload-container {
    position: relative;
    width: 260px;
    height: 80px;
    /* 自动布局 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
 border-radius: 4px;    
    background: #17171B;
    overflow: hidden;
   
    

    .file-input {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    .file-upload-text {
        font-size: 14px;
        color: $gray;
        display: flex;
        flex-direction: column;
        align-items: center;
         p {
            font-size: 14px;
            color: #686B86;
            font-family: 'PingFang SC';
        }
        img {
            width: 15px;
            height: 13px;
            margin-bottom: 10px;
        }
    }

    .image-preview {
        width: 100%;
            height: 100%;
            position: relative;
       
        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 8px;
        }
        .preview-image {
        transition: opacity 0.2s ease;
        
        &.blob-preview {
            opacity: 0.3;
        }
    }
        .delete-button {
            position: absolute;
            top: 10px;
            right:10px;
            width: 20px;
            height: 20px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            transition: all 0.2s;

        }
    }
}